package com.sky.mapper;

import com.sky.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {
    void insert(Orders orders);

    @Select("SELECT * FROM orders WHERE status = #{status} and order_time <= #{orderTime}")
    List<Orders> list(Orders orders);

    void update(Orders order);
}
